import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Home = () => import('../views/home/Home')
const My = () => import('../views/my/My')
const Report = () => import('../views/report/Report')

export default new Router({
  routes: [
    {
      path: '',
      redirect: '/home'
    },

    {
      path: '/home',
      component: Home
    },

    {
      path: '/my',
      component: My
    },

    {
      path: '/report',
      component: Report
    }
  ],
  mode: 'history'
})
